<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo CON_PLATFORMNAME;?>后台管理系统</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="/static/admin/style.css" rel="stylesheet" media="screen" type="text/css" />
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/My97DatePicker/WdatePicker.js"></script>
<script src="/static/js/jquery-ui.js"></script>
<link rel="stylesheet" href="/static/css/jquery-ui.css" />
<?php 
$typeArr = array(
	'0'=>'--',
	'1'=>'报表',
	'2'=>'媒体报导',
);
?>
</head>
<body>
<?php include_once 'common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once 'common/site_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
	<div class="admin_right_title"><div class="admin_right_title_left"><img src="/static/admin/admin_right_title_b.png" /></div><div class="admin_right_title_mid"><strong>贷款管理</strong> / 我要贷款</div><div class="admin_right_title_right"><img src="/static/admin/admin_right_title_s.png" /></div></div>
		<div class="admin_right_con" style="width: 98%">
			<table border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC" width="100%">
			  <tr style="color:#0068b7;">
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>ID</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>类型</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>标题</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>URL</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>缩略图</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>添加时间</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>操作</strong></td>
			  </tr>
			  <?php foreach($list as $key=>$val){?>
			  <tr>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $val['id'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $typeArr[$val['type']];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><a href="<?php $val['url'];?>" target="_blank"><?php echo $val['title'];?></a></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $val['url'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><img src="/<?php echo $val['image'];?>" style="width:100px;height:40px;"/></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo date('Y-m-d',$val['add_time']);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><a href="/ychadmin/meiti/view/<?php echo $val['id'];?>">修改</a></td>
			  </tr>
			  <?php }?>
			  <tr>
			  	<td colspan="7"  height="35" align="center" valign="middle" bgcolor="#FFFFFF" class="page"><?php echo $this->pagination->create_links();?></td>
			  </tr>
			</table>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->
</body>
</html>
